package ex2.trans;

import ex2.Employee;

public class ChangeNameTransacyion extends ChangeEmployeeTransaction {

    private String newName;

    public ChangeNameTransacyion(int empId, String newName) {
        super(empId);
        this.newName = newName;
    }

    @Override
    protected void doChange(Employee e) {
        e.setName(newName);
    }

}
